package org.example.lotterysystem.service;

import org.example.lotterysystem.controller.param.CreateActivityParam;
import org.example.lotterysystem.controller.param.PageParam;
import org.example.lotterysystem.controller.result.FindActivityListResult;
import org.example.lotterysystem.service.dto.ActivityDTO;
import org.example.lotterysystem.service.dto.ActivityDetailDTO;
import org.example.lotterysystem.service.dto.CreateActivityDTO;
import org.example.lotterysystem.service.dto.PageListDTO;
import org.springframework.stereotype.Service;

@Service
public interface ActivityService {
    /**
     * 创建活动
     * @param param
     * @return
     */
    CreateActivityDTO createActivity(CreateActivityParam param);

    PageListDTO<ActivityDTO> findActivityList(PageParam param);

    ActivityDetailDTO getActivityDetail(Long activityId);

    void cacheActivity(Long activityId);
}
